package com.leaves.leetcode.array.t1_Easy_twoSum;

import com.leaves.leetcode.UnitTesting;

public class T1Main extends UnitTesting<Object[], int[]> {

    Solution solution = new Solution();

    @Override
    protected void generateTestData() {
        testDataList.add(createTestData(new Object[]{new int[]{2,7,11,15}, 9}, new int[]{0, 1}));
        testDataList.add(createTestData(new Object[]{new int[]{3,2,4}, 6}, new int[]{1, 2}));
        testDataList.add(createTestData(new Object[]{new int[]{3, 3}, 6}, new int[]{0, 1}));

    }

    @Override
    public int[] run(Object[] inputData) {
        int[] nums = (int[]) inputData[0];
        int target = (int) inputData[1];
        return solution.twoSum(nums, target);
    }


}
